﻿#include"FITKAbsGeoModelSheet.h"
#include "FITK_Interface/FITKInterfaceModel/FITKAbstractModel.h"

namespace Interface
{

    FITKAbsGeoModelSheet::~FITKAbsGeoModelSheet()
    {

    }

    void FITKAbsGeoModelSheet::setLocation(double* p1)
    {
        //p1 is the location of the cylinder
        if (p1 == nullptr) return;
        FITKAbstractModel::CopyArray(p1, _location, 3);
    }

    void FITKAbsGeoModelSheet::getLocation(double* p1)
    {
        if (p1 == nullptr) return;
        FITKAbstractModel::CopyArray(_location, p1, 3);
    }

    void FITKAbsGeoModelSheet::setDirection(double* p2)
    {
        //p2 is the direction of the cylinder
        if (p2 == nullptr) return;
        FITKAbstractModel::CopyArray(p2, _direction, 3);
    }

    void FITKAbsGeoModelSheet::getDirection(double* dir)
    {
        //p2 is the direction of the cylinder
        if (dir == nullptr) return;
        FITKAbstractModel::CopyArray(_direction, dir,3);
    }

    void FITKAbsGeoModelSheet::setRadius0(double r)
    {

        _radius0 = r;
    }

    double FITKAbsGeoModelSheet::getRadius0() const
    {
        return _radius0;
    }

    void FITKAbsGeoModelSheet::setRadius1(double r)
    {
        _radius1 = r;
    }

    double FITKAbsGeoModelSheet::getRadius1() const
    {
        return _radius1;
    }

    void FITKAbsGeoModelSheet::setRadius2(double r)
    {
        _radius2 = r;
    }

    double FITKAbsGeoModelSheet::getRadius2() const
    {
        return _radius2;
    }

    void FITKAbsGeoModelSheet::setHeight(double height)
    {
        _height = height;
    }

    double FITKAbsGeoModelSheet::getHeight() const
    {
        return _height;
    }

    FITKGeoEnum::FITKGeometryComType FITKAbsGeoModelSheet::getGeometryCommandType()
    {
        return FITKGeoEnum::FGTSheet;
    }

}
